package com.jasmin.putnici;

import java.util.List;

import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;
import com.jasmin.putnici.geo.HelloItemizedOverlay;


public class LineActivity extends BaseActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_line);
        MapView mapView = (MapView) findViewById(R.id.map);
        mapView.setBuiltInZoomControls(true);
        
        List<Overlay> mapOverlays = mapView.getOverlays();
        Drawable drawable = this.getResources().getDrawable(R.drawable.herbalife);
        HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable, this);
                
        //-19.987594,-43.846311
        GeoPoint point = new GeoPoint(-19987594,-43846311);
        OverlayItem overlayitem = new OverlayItem(point, "Hola, Mundo!", "I'm in Eteg!");
        itemizedoverlay.addOverlay(overlayitem);
        mapOverlays.add(itemizedoverlay);
    }

    @Override
    protected boolean isRouteDisplayed() { return false; }

}
